from absl import app
from absl import flags

FLAGS = flags.FLAGS
flags.DEFINE_string('name', None, 'Your name')
flags.DEFINE_integer('num_times', 1, 'Number of times to print greeting.')

flags.mark_flag_as_required('name')


def main(argv):
    del argv
    for i in range(0, FLAGS.num_times):
        print('%d: Hello, %s!' % (i, FLAGS.name))


if __name__ == '__main__':
    app.run(main)
